Release 10.1A: OpenEdge Development:
Progress 4GL Reference
PUT-BYTES statement
Copies a RAW or MEMPTR variable to the specified location in another RAW or MEMPTR variable.
Syntax
destinationAn expression that returns a target RAW or MEMPTR variable. If
destinationis the Unknown value (?), PUT-BYTES does nothing.positionAn integer value greater than 0 that indicates the byte position where you want to put the data. If
positionis less than 1, Progress generates a runtime error.For a RAW variable, if
positionis greater than the length ofdestination, Progress increases the length ofdestinationtopositionplus the remaining bytes needed to storeexpression. The gap between the originaldestinationlength andpositionis padded with null bytes.For a MEMPTR variable, if
positionis greater than the length ofdestinationor does not leave sufficient room to storeexpression, Progress generates a runtime error. Ifdestinationis a RAW andpositionplus the length ofexpressionis greater than 32K, Progress generates a runtime error.expressionAn expression that returns a RAW or MEMPTR variable.
See also
GET-BYTES function, LENGTH function, LENGTH statement, RAW function, RAW statement, SET-SIZE statement
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |